.class Lcom/nemustech/regina/DialogCare$10;
.super Ljava/lang/Object;
.source "DialogCare.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/DialogCare;->createDialog(I)Landroid/app/Dialog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/DialogCare;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/DialogCare;)V
    .locals 0
    .parameter

    .prologue
    .line 600
    iput-object p1, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 8
    .parameter "dialog"
    .parameter "which"

    .prologue
    const/4 v7, 0x0

    const/4 v6, 0x1

    .line 603
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    const/4 v5, 0x4

    invoke-static {v4, v5}, Lcom/nemustech/regina/DialogCare;->access$800(Lcom/nemustech/regina/DialogCare;I)V

    .line 604
    packed-switch p2, :pswitch_data_0

    .line 652
    :goto_0
    return-void

    .line 616
    :pswitch_0
    new-instance v2, Landroid/content/Intent;

    const-string v4, "android.intent.action.GET_CONTENT"

    const/4 v5, 0x0

    invoke-direct {v2, v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 620
    .local v2, intent:Landroid/content/Intent;
    const-string v4, "image/*"

    invoke-virtual {v2, v4}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 621
    const-string v4, "crop"

    const-string v5, "true"

    invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 622
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getResources()Landroid/content/res/Resources;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    .line 623
    .local v0, dm:Landroid/util/DisplayMetrics;
    iget v3, v0, Landroid/util/DisplayMetrics;->widthPixels:I

    .line 624
    .local v3, width:I
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-static {v4}, Lcom/nemustech/regina/RUtils;->getScreenHeightAvailable(Landroid/content/Context;)I

    move-result v1

    .line 625
    .local v1, height:I
    const-string v4, "outputX"

    invoke-virtual {v2, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 626
    const-string v4, "outputY"

    invoke-virtual {v2, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 627
    const-string v4, "aspectX"

    invoke-virtual {v2, v4, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 628
    const-string v4, "aspectY"

    invoke-virtual {v2, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 629
    const-string v4, "scale"

    invoke-virtual {v2, v4, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 630
    const-string v4, "noFaceDetection"

    invoke-virtual {v2, v4, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 633
    const-string v4, "setWallpaper"

    invoke-virtual {v2, v4, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 634
    const-string v4, "return-data"

    invoke-virtual {v2, v4, v7}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 638
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4, v6}, Lcom/nemustech/regina/ReginaLauncher;->setElementAdding(Z)V

    .line 639
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    const/16 v5, 0x9

    invoke-virtual {v4, v2, v5}, Lcom/nemustech/regina/ReginaLauncher;->startActivityForResult(Landroid/content/Intent;I)V

    goto :goto_0

    .line 643
    .end local v0           #dm:Landroid/util/DisplayMetrics;
    .end local v1           #height:I
    .end local v2           #intent:Landroid/content/Intent;
    .end local v3           #width:I
    :pswitch_1
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    iget-object v5, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v5}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nemustech/regina/ReginaLauncher;->getElementLocator()Lcom/nemustech/regina/ElementLocator;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nemustech/regina/ElementLocator;->getCurrentWorkspaceIndex()I

    move-result v5

    invoke-virtual {v4, v5}, Lcom/nemustech/regina/ReginaPreference;->setThemeWallpaperWorkspaceIndex(I)V

    .line 644
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/regina/ReginaPreference;->commitPref()Z

    .line 646
    new-instance v4, Landroid/content/Intent;

    invoke-direct {v4}, Landroid/content/Intent;-><init>()V

    iget-object v5, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v5}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v5

    const-class v6, Lcom/nemustech/regina/ReginaThemeSelector;

    invoke-virtual {v4, v5, v6}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    move-result-object v2

    .line 649
    .restart local v2       #intent:Landroid/content/Intent;
    iget-object v4, p0, Lcom/nemustech/regina/DialogCare$10;->this$0:Lcom/nemustech/regina/DialogCare;

    invoke-static {v4}, Lcom/nemustech/regina/DialogCare;->access$200(Lcom/nemustech/regina/DialogCare;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v4

    invoke-virtual {v4, v2}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 604
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
